package com.datang.petstore.utils;/*
 * @auther 顶风少年
 * @mail dfsn19970313@foxmail.com
 * @date 2019-05-12 18:35
 * @notify
 * @version 1.0
 */


import java.util.UUID;

public class StringUtils {
    /*
     * @author 顶风少年
     * @date 2019/5/18 16:31
     * @mail dfsn199703132038@foxmail.com
     * @throws
     * @param
     * @result java.lang.String
     * @notify 生成UUID
     * version 1.0
     */
    public static String getId() {
        return UUID.randomUUID().toString().replace("-", "");
    }

    /*
     * @author 顶风少年
     * @date 2019/5/18 16:34
     * @mail dfsn199703132038@foxmail.com
     * @throws
     * @param
     * @param str
     * @result boolean
     * @notify 查询字符串是不是null
     * version 1.0
     */
    public static boolean isNUll(String str) {
        if (str == null) {
            return true;
        } else {
            //去掉空格
            str = str.replace(" ", "");
            return str == "";
        }

    }

}
